package day03_template_method;

/**
 * @author Koizumi Sinya
 * @date 2018/11/07. 11:13
 * @edithor
 * @date
 */
public abstract class AbstractDisplay {
    protected abstract void open();

    protected abstract void close();

    protected abstract void print();

    public final void display() {
        open();
        for (int i = 0; i < 5; i++) {
            print();
        }
        close();
    }
}
